const getDataValue = require('../common/getDataValue');
const Manufacturer = require('../model/Manufacturer/Manufacturer');
const ManufacturerDaily = require('../model/Manufacturer/ManufacturerDaily');
const ManufacturerDeal = require('../model/Manufacturer/ManufacturerDeal');

module.exports = {
    getProfile: async (ctx) => {
        const data = ctx.request.body;
        const manufacturer =  getDataValue(await Manufacturer.findOne({
            where: {
                id: 1
            }
        }))
        console.log(manufacturer)
        ctx.json({
            statusCode: 200,
            msg: manufacturer
        })
    },
    changeProfile: async (ctx) => {},
    getManufacturerDaily: async (ctx) => {},
    putManufacturerDaily: async (ctx) => {},
    getManufacturerDeal: async (ctx) => {},
    putManufacturerDeal: async (ctx) => {},
    changeManufacturerDeal: async (ctx) => {},
};